-- GENERATED SPELL FOR [Protectorate Avenger] --


function spell0_21805(pUnit, Event) --@Glaive,n/a--
pUnit:FullCastSpellOnTarget(36500,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21805', 606, 1)
end

function Sorts_21805(pUnit, Event)
local choix_sorts_21805 = math.random(0, 0)
if choix_sorts_21805 == 0 then
pUnit:RegisterEvent('spell0_21805', 1, 1)
end
end

function mob21805_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21805', math.random(1500, 3000), 1)
end

function mob21805_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21805_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21805_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21805, 1, 'mob21805_Action')
RegisterUnitEvent(21805, 2, 'mob21805_Leave')
RegisterUnitEvent(21805, 3, 'mob21805_Kill')
RegisterUnitEvent(21805, 4, 'mob21805_Die')
